import { createStackNavigator } from 'react-navigation'
import { defaultStackOptions } from '../../src/utils/DefaultTitleOption'
import PwdLoginPage from '../pages/login/PwdLoginPage'
import MsgLoginPage from '../pages/login/MsgLoginPage'
import RegistryPage from '../pages/login/RegistryPage'

// 登录模块的路由
const loginRoutes = {
  PwdLogin: { screen: PwdLoginPage },
  MsgLogin: { screen: MsgLoginPage },
  Registry: { screen: RegistryPage }
}

const LoginStack = createStackNavigator(loginRoutes, {
  // mode: isAndroid() ? 'card' : 'modal',
  // 初始路由的参数
  initialRouteParams: {
    isRoot: true
  },
  defaultNavigationOptions: defaultStackOptions
})

export default LoginStack